package com.itheima.day01;

import java.util.Random;

public class Demo07 {
    public static void main(String[] args) {
        Random ra = new Random();
        int[] arr = {3,1,2,3,0,0,0,5};
        int index = ra.nextInt(arr.length);
        int i = arr[index];
        if (i == 0) {
            System.out.println("再接再厉");
        }else{
            System.out.println("恭喜抽中"+i+"等奖");
        }




    }
}
